package rmi.agencia;

import java.rmi.RemoteException;
import com.healthmarketscience.rmiio.*;
import java.rmi.server.UnicastRemoteObject;
import rmi.*;
import util.Utils;

public class Agencia extends UnicastRemoteObject implements RmiInterface {

	public Agencia() throws RemoteException {
		super();
	}

	public void enviarMensagem( String msg ) throws RemoteException {
		System.out.println( msg );
	}

	public String lerMensagem() throws RemoteException {
		return "This is not a Hello World! message";
	}
	
	public void runAircrack() throws RemoteException {
		Utils.startAircrack();
	}
}
